image: guix
oauth: builds.sr.ht/JOBS:RW builds.sr.ht/PROFILE:RO
sources:
- https://git.sr.ht/~whereiseveryone/guixrus
packages:
- hut
tasks:
- guard: |
    cd guixrus
    if [ "$BUILD_REASON" == patchset ] || [ "$(git rev-parse HEAD)" != "$(git rev-parse master)" ]; then
      complete-build # UNDOCUMENTED builds.sr.ht escape hatch
    fi
- pull: |
    cd guixrus
    git fetch origin keyring:keyring
    set -o pipefail
    scripts/pull | xargs -rn1 gunzip -c
- publish: |
    curl -s https://git.sr.ht/~whereiseveryone/website/blob/master/.build.yml \
      | hut builds submit -n "Publish [~whereiseveryone/website](https://git.sr.ht/~whereiseveryone/website) for build [#$JOB_ID]($JOB_URL)" -
